html {
    background-color: #3ec581;
}

body {
    max-width: 1000px;
    min-width: 480px;
    margin: auto;
    font-family: Segoe UI, Verdana, Helvetica, sans-serif;
    font-size: 14px;
}

@media only screen and (min-width: 1000px) {
    body {
        margin-top: 10px;
    }
}

div.header {
    height: 65px;
    background-color: #dddddd;
    position: relative;
}

div.header a.header_title {
    font-size: 22px;
    font-weight: bold;
    color: #e62e00;
    position: absolute;
    left: 20px;
    bottom: 5px;
    text-decoration: none;
}

div.header div.header_account {
    position: absolute;
    right: 20px;
    bottom: 5px;
}

div.header div.header_account a {
    margin-left: 2px;
}

div.menu {
    background-color: #444444;
    height: 30px;
    padding: 0px;
}

div.menu a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    height: 20px;
    margin: 0px;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 4px;
}

div.menu a:hover {
    background-color: #555555;
}

div.header2 {
    height: 23px;
    background-color: #fffed8;
    padding-left: 15px;
    padding-top: 4px;;
    font-size: 0.95em;
    font-weight: 700;
    color:#575757;
    border:1px solid rgb(198, 198, 198);
}

div.content {
    background-color: white;
    padding: 15px;
}

div.header3 {
    min-height: 23px;
    font-size: 1.1em;
    font-weight: 600;
    color:#575757;
    margin-top: -10px;
    padding-bottom: 5px;
}

table.index {
    border-collapse: collapse;
}

table.index td.index-left {
    width: 180px;
    display: none;
}

@media only screen and (min-width: 900px) {
    table.index td.index-left {
        display: block;
    }
}

table.grid {
    border-collapse: collapse;
}

@media only screen and (min-width: 900px) {
    table.grid {
        margin-left: 80px;
    }
}

@media only screen and (min-width: 900px) {
    table.popup-grid {
        margin-left: 20px;
    }
}

table.grid th {
    border: 1px solid lightgray;
    background-color: #e8eef4;
    padding: 3px;
    text-align: left;
    font-weight: 600;
}

table.grid th.name {
    width: 250px;
}

table.grid tr:hover {
    background-color: #f8f9ea;
}

table.grid td {
    border: 1px solid lightgray;
    padding: 3px;
}

table.grid td a {
    margin-right: 3px;
}

table.grid th.buttons,
table.grid td.buttons {
    white-space: nowrap;
}

@media only screen and (max-width: 900px) {
    table.grid td.buttons {
        padding-bottom: 0px;
    }
}

table.grid td.buttons a {
    background-color: #f1f6f8;
    border: 1px solid #d6e2ee;
    text-decoration: none;
    line-height: 16px;
    padding-right: 2px;
    padding-bottom: 2px;
    margin: 0px;
    margin-right: 2px;
}

table.grid td.buttons a:hover {
    background-color: #c7d1d6;
}

div.pagination-links {
    margin: 0px;
}

@media only screen and (min-width: 900px) {
    div.pagination-links {
        margin-left: 80px;
    }
}

@media only screen and (min-width: 900px) {
    div.popup-pagination-links {
        margin-left: 20px;
    }
}

div.content span.empty {
    margin-left: 80px;
}

table.tabs {
    margin-top: 0px;
    margin-bottom: 10px;
    border-collapse: collapse;
}

table.tabs td.current-tab,
table.tabs td.tab {
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 7px;
}

@media only screen and (min-width: 600px) {
    table.tabs td.current-tab,
    table.tabs td.tab {
        padding: 5px 15px;
    }
}

table.tabs td.current-tab {
    border-top: 1px solid #a7a7a7;
    border-left: 1px solid #a7a7a7;
    border-right: 1px solid #a7a7a7;
}

table.tabs td.tab {
    border: 1px solid #a7a7a7;
    color: #777777;
    background-color: #e0e0e0;
}

table.tabs td.tab a {
    text-decoration: none;
    background-color: #e0e0e0;
}

table.tabs td.line {
    border-bottom: 1px solid #a7a7a7;
    width: 100%;
}

fieldset {
    border: 1px solid #ddd;
    padding: 0.3em 1.3em 0.3em 1.3em;
    margin: 0 0 0 0;
}

legend {
    font-size: 1.0em;
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
    color: #444;
}

div.form-row {
    padding-top: 0px;
    margin: 0px;
}

div.form-row span.form-section {
    display: inline-block;
    margin-top: 8px;
}

@media only screen and (min-width: 600px) {
    div.form-row span.form-section {
        white-space: nowrap;
    }
}

div.form-row span.form-left-label,
div.form-row label.form-left-label,
div.form-row span.form-left-label-150,
div.form-row label.form-left-label-150,
div.form-row span.form-left-label-200,
div.form-row label.form-left-label-200,
div.form-row span.form-left-label-280,
div.form-row label.form-left-label-280 {
    display: inline-block;
    text-align: right;
    vertical-align: top;
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-left-label,
    div.form-row label.form-left-label {
        width: 80px;
    }
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-left-label-150,
    div.form-row label.form-left-label-150 {
        width: 150px;
    }
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-left-label-200,
    div.form-row label.form-left-label-200 {
        width: 200px;
    }
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-left-label-280,
    div.form-row label.form-left-label-280 {
        width: 280px;
    }
}

div.form-row span.form-info-left-label,
div.form-row label.form-info-left-label {
    display: inline-block;
    text-align: right;
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-info-left-label,
    div.form-row label.form-info-left-label {
        width: 80px;
    }
}

@media only screen and (min-width: 900px) {
    div.form-row label.form-left-label {
        width: 80px;
    }
}

@media only screen and (min-width: 900px) {
    div.form-row label.form-left-label-200 {
        width: 200px;
    }
}

div.form-row span.form-label,
div.form-row label.form-label {
    display: inline-block;
}

@media only screen and (min-width: 900px) {

    div.form-row span.form-label,
    div.form-row label.form-label {
        padding-left: 8px;
    }
}

@media only screen and (min-width: 900px) {
    div.form-row input.form-field {
        margin-top: 4px;
    }
}

div.form-button-row {
    padding-top: 8px;
    padding-bottom: 4px;
}

@media only screen and (min-width: 900px) {
    div.form-button-row {
        padding-left: 80px;
    }
}

input[type="submit"],
input[type="button"],
button {
    background-color: #d3dce0;
    border: 1px solid #787878;
    cursor: pointer;
    padding: 7px;
    margin-right: 8px;
    height: auto;
    width: auto;
}

input[type="submit"],
input[type="button"],
button {
    font-size: 0.9em;
    font-weight: bold;
    padding: 4px;
    margin-right: 4px;
}

input[type="submit"].save-button {
    display: inline-block;
    height: 25px;
    /*width: 100px;*/
    background-image: url("/image/save.ico");
    background-position: 5px 5px;
    background-size: 15px 15px;
    background-repeat: no-repeat;
    padding-left: 23px;
    text-align: left;
    vertical-align: top;
}

div.form-row input[type="text"] {
    width: 250px;
}

div.form-row input.filter-field[type="text"] {
    width: 200px;
}

div.form-row span.required {
    color: red;
}

div.form-button-row div.validation-summary {
    max-width: 400px;
}

div.form-button-row span.validation-summary {
    display: inline-block;
    max-width: 400px;
}

.button-table {
    margin-top: 10px;
    border-collapse: collapse;
    padding: 0;
    border-spacing: 0;
    margin-left: 60px;
}

.button-table tr td {
    padding: 0 5px 0 0;
}

div.form-button-row span.validation-summary {
    display: inline-block;
}

table.grid td a.edit-button {
    display: inline-block;
    background-image: url("/image/edit.ico");
    background-position: 2px 2px;
    background-size: 13px 13px;
    background-repeat: no-repeat;
}

@media only screen and (max-width: 900px) {
    table.grid td a.edit-button {
        padding-left: 0px;
        width: 14px;
        overflow: hidden;
        color: transparent;
    }
}

@media only screen and (min-width: 900px) {
    table.grid td a.edit-button {
        padding-left: 17px;
    }
}

table.grid td a.details-button {
    display: inline-block;
    background-image: url("/image/details.ico");
    background-position: 2px 2px;
    background-size: 13px 13px;
    background-repeat: no-repeat;
}

@media only screen and (max-width: 900px) {
    table.grid td a.details-button {
        padding-left: 0px;
        width: 14px;
        overflow: hidden;
        color: transparent;
        margin-bottom: 0px;
    }
}

@media only screen and (min-width: 900px) {
    table.grid td a.details-button {
        padding-left: 17px;
    }
}

table.grid td a.open-button {
    display: inline-block;
    background-image: url("/image/open.ico");
    background-position: 2px 2px;
    background-size: 13px 13px;
    background-repeat: no-repeat;
}

@media only screen and (max-width: 900px) {
    table.grid td a.open-button {
        padding-left: 0px;
        width: 14px;
        overflow: hidden;
        color: transparent;
    }
}

@media only screen and (min-width: 900px) {
    table.grid td a.open-button {
        padding-left: 17px;
    }
}

table.grid td a.delete-button {
    display: inline-block;
    background-image: url("/image/delete.ico");
    background-position: 1px 3px;
    background-size: 13px 13px;
    background-repeat: no-repeat;
    white-space: nowrap;
}

@media only screen and (max-width: 900px) {
    table.grid td a.delete-button {
        padding-left: 0px;
        width: 14px;
        overflow: hidden;
        color: transparent;
    }
}

@media only screen and (min-width: 900px) {
    table.grid td a.delete-button {
        padding-left: 17px;
    }
}

@media only screen and (min-width: 800px) {
    div.messages {
        margin-left: 70px;
    }
}

div.list-row {
    width: 90%;
    border-bottom: 1px solid lightgray;
}

table.forum-edit-form {
    width: 100%;
}

table.internal {
    margin: 0px;
}

table.internal td {
    border: none;
    padding: 0px;
}

td.forum-thumbnail {
    vertical-align: top;
}

@media only screen and (min-width: 900px) {
    td.forum-thumbnail {
        width: 150px;
    }
}

a.forum-person {
    font-weight: bold;
}

span.forum-text {
    display: inline-block;
    width: 350px;
    font-size: 0.9em;
}

span.forum-footer {
    font-size: 0.9em;
}

img.forum-delete-button {
    border: none;
    width: 13px;
}

@media only screen and (min-width: 900px) {
    table.forum-post {
        margin-left: 82px;
    }
}

textarea.forum-post {
    font-size: 0.9em;
    height: 52px;
    width: 100%;
    max-width: 300px;
}

a.forum-link {
    font-size: 0.9em;
}

@media only screen and (min-width: 800px) {
    div.thumbnails {
        margin-left: 70px;
    }
}

table.thumbnail {
    border: 2px solid rgb(225, 225, 225);
    display: inline-block;
    border-collapse: collapse;
}

@media only screen and (max-width: 600px) {
    table.thumbnail {
        border: 1px solid rgb(225, 225, 225);
        margin-top: 1px;
        margin-bottom: 1px;
        margin-left: 1px;
        margin-right: 1px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {
    table.thumbnail {
        border: 1.5px solid rgb(225, 225, 225);
        margin-top: 3px;
        margin-bottom: 3px;
        margin-left: 3px;
        margin-right: 3px;
    }
}

@media only screen and (min-width: 900px) {
    table.thumbnail {
        border: 2px solid rgb(225, 225, 225);
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }
}

table.thumbnail td.thumbnail {
    text-align: center;
    vertical-align: middle;
}

@media only screen and (max-width: 600px) {
    table.thumbnail td.thumbnail {
        height: 95px;
        width: 95px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {
    table.thumbnail td.thumbnail {
        height: 105px;
        width: 105px;
    }
}

@media only screen and (min-width: 900px) {
    table.thumbnail td.thumbnail {
        height: 115px;
        width: 115px;
    }
}

img.thumbnail {
    border: none;
    margin: auto;
    display: block;
}

@media only screen and (max-width: 600px) {
    img.thumbnail {
        max-width: 90px;
        max-height: 90px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {
    img.thumbnail {
        max-width: 100px;
        max-height: 100px;
    }
}

@media only screen and (min-width: 900px) {
    img.thumbnail {
        max-width: 110px;
        max-height: 110px;
    }
}

table.thumbnail td.links {
    padding: 0px;
    text-align: center;
    vertical-align: top;
    line-height: 0.9em;
    padding-bottom: 2px;
}

table.thumbnail td.links a {
    margin: 0px;
    margin-right: 2px;
    margin-bottom: 2px;
    position: relative;
    top: -3px;
}

@media only screen and (max-width: 600px) {
    table.thumbnail td.links a {
        font-size: 0.7em;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {
    table.thumbnail td.links a {
        font-size: 0.8em;
    }
}

@media only screen and (min-width: 900px) {
    table.thumbnail td.links a {
        font-size: 0.9em;
    }
}

img.icon {
    width: 20px;
    height: 20px;
}

a.image-arrow-active:link, a.image-arrow-active:visited,
a.image-arrow-active:active, a.image-arrow-active:hover {
    font-size: 2.5em;
    font-weight: bold;
    color: gray;
    text-decoration: none;
    background-color: transparent;
}

a.image-arrow-noactive:link, a.image-arrow-noactive:visited,
a.noimage-arrow-active:active, a.image-arrow-noactive:hover {
    font-size: 2.5em;
    font-weight: bold;
    color: lightgray;
    text-decoration: none;
    background-color: transparent;
}

.overlay {
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0px;
}

.popup {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    background-color: white;
    border: 2px solid gray;
}

div.links {
    margin-top: 10px;
    padding: 0;
}

@media only screen and (min-width: 900px) {
    div.links {
        margin-left: 80px;
    }
}

span.action-success {
    color: green;
    padding: 5px;
}

@media only screen and (min-width: 600px) {
    span.action-success {
        padding: 10px;
        padding-left: 75px;
    }
}

span.action-error {
    color: red;
    padding: 5px;
}

@media only screen and (min-width: 600px) {
    span.action-error {
        padding: 10px;
        padding-left: 75px;
    }
}

div.error {
    color: red;
}

@media only screen and (min-width: 900px) {
    div.error {
        margin-left: 80px;
    }
}

div.footer {
    background-color: #dddddd;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

a {
    color: #333333;
}

@media only screen and (max-width: 600px) {
    br {
        display: none;
    }
}

br.no-hidden {
    display: inline;
}

div.footer a.footer_link {
    display: inline-block;
    margin-top: 4px;
}

div.debug {
    color: coral;
    background-color: #fffed8;
    padding: 5px;
    border: 1px solid gray;
}

div.script_debug {
    color: coral;
    background-color: #fffed8;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 200px;
    height: 50px;
    border: 1px solid gray;
}